package cn.shop.admin.mapper;

import cn.shop.admin.entity.backUserModule.AdminMenuVO;
import cn.shop.admin.entity.backUserModule.BackUser;
import cn.shop.base.MyBaseMapper;

import java.util.List;

/**
 * 总后台角色表(BackUser)表数据库访问层
 *
 * @author jzw
 * @since 2021-11-02 11:35:13
 */
public interface BackUserMapper extends MyBaseMapper<BackUser> {

	/**
	 * 通过用户id 查询用户所有角色code
	 *
	 * @param id 用户id
	 * @author jzw
	 * @since 2021/11/17 17:10
	 */
	List<String> selectRoleCodeByUserId(Long id);
	

	/**
	 * 获取当前登录人菜单
	 *
	 * @param userId
	 * @return
	 * @author jy
	 * @since 2022/1/17 14:09
	 */
	List<AdminMenuVO> getMenuListByUserId(Long userId);

}

